using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CoinNum : MonoBehaviour
{
    Text contentTxt;
    // Start is called before the first frame update
    void Start()
    {
        contentTxt = GetComponent<Text>();
    }

    // Update is called once per frame
    void Update()
    {

    }

    public void changeTxt(int value)
    {
        contentTxt.text = value.ToString();
    }
}
